<?=view('admin.common.header')?>
<?=view('admin.common.nav')?>
<div class="container">
    <div class="row">
        <?php if($pushmoneys && count($pushmoneys)): ?>
        <div class="panel panel-default">
            <div class="panel-heading">
                提成比例
            </div>
            <table class="table table-bordered">
                <thead>
                    <tr>
                        <th>产品类型</th>
                        <th>一级代理提成(百分比)</th>                        
                        <th>二级代理提成(百分比)</th>
                        <th>代付提成(金额)</th>
                        <th>#</th>
                    </tr>
                </thead>
                <tbody>
                    <?php foreach ($pushmoneys as $val): ?>
                    <tr>
                        <td><?=  config("global.site.ptype.{$val->productstatus}")?></td>
                        <td><?=  $val->pidpush?></td>
                        <td><?=  $val->ppidpush?></td>
                        <td><?=  $val->payagentpush?></td>
                        <td>
                            <a href="<?=url("admin/pushmoney/edit/{$val->id}")?>" class="btn btn-info btn-xs eveModify">修改</a>
                        </td>
                    </tr>
                    <?php endforeach; ?>
                </tbody>
            </table>
        </div>
        <?php endif; ?>
    </div>
</div>
<script>
$('.eveModify').click(function(){
        var $url = $(this).attr('href');
        layer.open({
            type: 2,
            title: '修改',
            shadeClose: false,
            shade: 0.8,
            area: ['480px', '360px'],
            content:  $url,
        });
        return false;
    });
</script>
<?=view('admin.common.footer')?>